
echo on

SET CWD=%CD%

SET WGET_INDEX_URL=http://www.opengl.org/registry/
SET WGET_OGL_ARB_URL=registry/specs/ARB
SET WGET_OGL_EXT_URL=registry/specs/EXT
SET WGET_OGL_NV_URL=registry/specs/NV
SET WGET_OGL_ATI_URL=registry/specs/ATI
SET WGET_OGL_AMD_URL=registry/specs/AMD
SET WGET_OGL_S3_URL=registry/specs/S3
SET WGET_OGL_IBM_URL=registry/specs/IBM
SET WGET_OGL_WIN_URL=registry/specs/WIN
SET WGET_OGL_SUN_URL=registry/specs/SUN
SET WGET_OGL_SGIS_URL=registry/specs/SGIS
SET WGET_OGL_SGIX_URL=registry/specs/SGIX

SET WGET_OPTS=--no-verbose --timestamping --recursive --level=4 --accept=txt --no-directories 

wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_ARB_URL% -P%CWD%/../Exts/ARB %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_EXT_URL% -P%CWD%/../Exts/EXT %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_NV_URL% -P%CWD%/../Exts/NV %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_ATI_URL% -P%CWD%/../Exts/ATI %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_AMD_URL% -P%CWD%/../Exts/AMD %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_S3_URL% -P%CWD%/../Exts/S3 %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_IBM_URL% -P%CWD%/../Exts/IBM %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_WIN_URL% -P%CWD%/../Exts/WIN %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_SUN_URL% -P%CWD%/../Exts/SUN %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_SGIS_URL% -P%CWD%/../Exts/SGIS %WGET_INDEX_URL%
wget.exe %WGET_OPTS% --include-directories=%WGET_OGL_SGIX_URL% -P%CWD%/../Exts/SGIX %WGET_INDEX_URL%